//
//  UILabel+Extension.swift
//  weibo
//
//  Created by youyongpeng on 15/11/22.
//  Copyright © 2015年 youyongpeng. All rights reserved.
//

import UIKit

extension UILabel {

    /// UILabel
    ///
    /// - parameter title:    title
    /// - parameter color:    color, 颜色默认为灰色
    /// - parameter textFont: textFont 字体默认为14
    ///
    /// - returns: 返回UILabel
    convenience init(title: String, color: UIColor = UIColor.darkGrayColor(), textFont: CGFloat = 14) {
        
        self.init()
        
        text = title
        textColor = color
        textAlignment = NSTextAlignment.Center
        font = UIFont.systemFontOfSize(textFont)
        numberOfLines = 0
        
    }
}
